<?
require_once("lib/php/controller/ViewController.php");
require_once("ericdingle/model/post/PostProvider.php");

class Rss extends ViewController {
	public function doGet() {
		$postProvider = PostProvider::getInstance();
		$posts = $postProvider->read(null, null, 20);
		
		header("Content-type: text/xml");
		header("Content-encoding: utf-8");
		$this->loadView("ericdingle/view/rss.php", array(
			"posts" => $posts
		));
	}
};
?>
